import { useRootStore } from '@v/store';

const store = useRootStore();

/**
 * 根据 id 获取图片对象
 */
export function getImgInfoItemById(id: number) {
	id *= 1;
	if (store.fileInfo) {
		return store.fileInfo.imageInfo.find((item) => item.id === id);
	}
}
